﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sale_detail.aspx.cs" Inherits="E1_eMart.user.bidding_detail" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Sale Detail</title>
    <link rel="stylesheet" href="../css/style.css">
    <style type="text/css">
        .newStyle1
        {
            border-style: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="header">
    <div id="logo">
        <a href="../index.aspx"><img src="../images/logo.png" alt="Our Logo" width="153"></a>
    </div>
    <ul id="nav">
        <li>Hello, 
                        <%if (loaiTaiKhoan == 1)
                          { %>
                            <a href="../user/Account_Management.aspx">
                                <% =account.TenTaiKhoan%> 
                            </a>
                            <%}
                          else
                          { %>
                          <a href="">
                                <% =account.TenTaiKhoan%> 
                            </a>
                            <%} %>
             </li>
        <asp:LinkButton ID="lbLogOut" runat="server" 
                onclientclick="if(!confirm('Bạn có muốn thoát không?'))return false" 
                PostBackUrl="~/Logout.aspx">Logout</asp:LinkButton>
    </ul>
    <div id="user_box">
<%if (loaiTaiKhoan == 2 || loaiTaiKhoan == 3)
          {
               %><a href="../admin/dashboard.aspx">Admin CP</a><%}
          %>

          <%if(loaiTaiKhoan == 1)
            { %>
          <a href="Account_Management.aspx">My Products</a><%
          } %>
          <%
              if (Session["username"] == null)
              {
           %>  
        <a href="../Login.aspx">Sell</a>
        <%}
              else
              {
                  if (loaiTaiKhoan == 1)
                  {
                  %>
              <a href="../submit_product.aspx">Sell</a>
              <%}
              }%>
        <a href="">Help</a>
    </div>
    <div class="clear"></div>
    <hr>
    <p style="font-size: 24px; background-color: #ff9933; font-style: oblique;">eMart Account Management</p>
</div>

<div id="main_body">
<div id="left_content">
        <div id="categories">
            <ul>
                <li><a href="AccountInfo.aspx">User Infomation</a></li>
                <li><a href="../submit_product.aspx">Submit Product</a></li>
                <li><a href="Bid_History.aspx">Bid History</a></li>
                <li><a href="Current_Bidding.aspx">Current Bidding</a></li>
                <li><a href="Account_Management.aspx">Your items</a></li>
                <li><a href="ItemsWaitingConfirm.aspx?mtk=<% =account.MaTaiKhoan%>">Items Waiting Confirm</a></li>
                <li><a href="BiddingSuccessful.aspx?mtk=<% =account.MaTaiKhoan%>">Bidding Successful</a></li>
                <li><a href="../index.aspx">Exit</a></li>
            </ul>
        </div>
</div>

<div id="center_info">
    <table class="list_item" width="100%">
        <tr>
            <p style="text-decoration: underline">LIST OF PEOPLE THAT BOUGHT PRODUCT: <%=sanPham.TenSanPham %></p>      
        </tr>                
        
    </table>
    <asp:GridView ID="GridView1" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames="MaChiTietDauGia,MaTaiKhoan" 
                    DataSourceID="LinqDataSource1" 
        CellSpacing="3" Height="111px" Width="559px" BorderStyle="Dotted" 
        onrowdatabound="GridView1_RowDataBound" CellPadding="0">
                <Columns>
                    <asp:TemplateField HeaderText="User">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("TaiKhoan") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="GiaGiaoDich" HeaderText="Price" 
                        SortExpression="GiaGiaoDich" />
                    <asp:BoundField DataField="ThoiGianGiaoDich" HeaderText="Time" 
                        SortExpression="ThoiGianGiaoDich" />
                    <asp:BoundField DataField="TinhTrang" HeaderText="Status" 
                        SortExpression="TinhTrang" />
                    <asp:TemplateField HeaderText="Sell To">
                        <ItemTemplate>
                            <asp:CheckBox ID="ckSell" runat="server" Text="Check" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#FFFFCC" />
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="E1_eMart.DataClasses1DataContext" EntityTypeName="" 
                    TableName="ChiTietDauGias" 
                    
        Where="TinhTrang == @TinhTrang &amp;&amp; MaSanPham == @MaSanPham">
                    <WhereParameters>
                        <asp:Parameter DefaultValue="Đang đấu giá" Name="TinhTrang" Type="String" />
                        <asp:QueryStringParameter Name="MaSanPham" QueryStringField="msp" 
                            Type="Int32" />
                    </WhereParameters>
                </asp:LinqDataSource>    
</div> 
</div>
    <br />
    &nbsp;
    <asp:Button ID="btnOK" runat="server" Text="Apply changes" 
        onclick="btnOK_Click" />
&nbsp;<div class="clear"></div>
<div id="footer" class="login">
    <hr>
    <h4>Copyright &copy; 2011 eMart Inc. All rights reserved.</h4>
    <div id="about">
        <a href="../about.html"><h3>About</h3></a>
        <a href="../about.html"><h3>Contact Us</h3></a>
    </div>
</div>
    </form>
</body>
</html>

